package com.xxjqr.rbac.service.impl;

import com.github.pagehelper.PageInfo;
import com.xxjqr.rbac.anno.PageQuery;
import com.xxjqr.rbac.entity.pojo.TbOperLog;
import com.xxjqr.rbac.enums.BusinessStatusEnum;
import com.xxjqr.rbac.enums.OperTypeEnum;
import com.xxjqr.rbac.mapper.TbSysOperLogMapper;
import com.xxjqr.rbac.service.TbSysOperLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 丁昌江
 * @since 2021-05-05
 */
@Service
@AllArgsConstructor
public class TbSysOperLogServiceImpl extends ServiceImpl<TbSysOperLogMapper, TbOperLog> implements TbSysOperLogService {

    private final TbSysOperLogMapper operLogMapper;

    @Override
    public PageInfo<TbOperLog> selectList(String title, String operName, OperTypeEnum operTypeEnum
            , BusinessStatusEnum status, String beginTime, String endTime) {
        return PageInfo.of(operLogMapper.list(title,operName,operTypeEnum,status,beginTime,endTime));
    }
}
